package operation;

import book.BookList;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: a1227
 * Date: 2022-10-04
 * Time: 12:00
 */
public class DisplayOperation implements IOperation{
    @Override
    public void work(BookList bookList) {
        System.out.println("打印书籍列表！");
        for(int i = 0; i < bookList.getSize(); i++){
            System.out.println(bookList.getBook(i));
        }
    }
}
